/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xml2postgreconvertor;

import java.io.Serializable;

/**
 *
 * @author swosh
 */
public class Ulice implements Serializable {

    private String nazUlice;
    private String nazCastiObce;
    private String nazObce;

    public Ulice() {
    }

    public Ulice(String nazUlice) {
        this.nazUlice = nazUlice;
    }

    public Ulice(String nazUlice, String nazCastiObce, String nazObce ) {
        this.nazUlice = nazUlice;
        this.nazCastiObce = nazCastiObce;
        this.nazObce = nazObce;
    }

    public String getNazUlice() {
        return nazUlice;
    }

    public void setNazUlice(String nazUlice) {
        this.nazUlice = nazUlice;
    }

    public String getNazCastiObce() {
        return nazCastiObce;
    }

    public void setNazCastiObce(String nazCastiObce) {
        this.nazCastiObce = nazCastiObce;
    }

    public String getNazObce() {
        return nazObce;
    }

    public void setNazObce(String nazObce) {
        this.nazObce = nazObce;
    }

    public String toStringNotEndDot() {
        StringBuilder sB = new StringBuilder();
        if (nazUlice != null) {
            sB.append(nazUlice);
        } else {
            sB.append("null");
        }
        sB.append(", ");
        if (nazCastiObce != null) {
            sB.append(nazCastiObce);
        } else {
            sB.append("null");
        }
        sB.append(", ");
        if (nazObce != null) {
            sB.append(nazObce);
        } else {
            sB.append("null");
        }
        sB.append(" ");
        return sB.toString();
    }

}
